package com.zmn.uac.common.exception;

/**
 * 类描述： 业务异常
 *
 * @author xujie
 * @since 2021/05/18 18:21
 */
public class CustomerException extends RuntimeException {

    /**
     * 异常对应的返回码
     */
    private Integer errorCode;

    /**
     * 异常对应的描述信息
     */
    private String msg;

    public CustomerException() {

        super();
    }

    public CustomerException(String msg) {

        super(msg);
        this.msg = msg;
    }

    public CustomerException(Integer errorCode, String msg) {

        super(msg);
        this.errorCode = errorCode;
        this.msg = msg;
    }

    public CustomerException(Throwable t) {

        super(t);
    }

    public Integer getErrorCode() {

        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {

        this.errorCode = errorCode;
    }

    public String getMsg() {

        return msg;
    }

    public void setMsg(String msg) {

        this.msg = msg;
    }
}
